package com.pj.project.sys_points_history;

import cn.dev33.satoken.sso.SaSsoUtil;
import com.pj.project.sys_user.SysUser;
import com.pj.project.sys_user.SysUserMapper;
import com.pj.project.sys_user.SysUserUtil;
import com.pj.project.sys_user_password.SysUserPasswordService;
import com.pj.project4sp.SP;
import com.pj.utils.sg.AjaxError;
import com.pj.utils.sg.NbUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Service: sys_user -- 用户表
 * 
 * @author kong
 * @since 2022-11-25
 */
@Service
public class SysPointHistoryService {
	/** 底层 Service 对象 */
	@Autowired
    SysPointHistoryMapper sysPointHistoryMapper;

	/** 新增积分变动记录 */
	@Transactional(rollbackFor = Exception.class)
	public int add(SysPointHistory sysPointHistory){

		int add = sysPointHistoryMapper.add(sysPointHistory);

		//  返回
		return add;
	}

}
